package com.stylefeng.guns.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

public class Computer extends Model<Computer> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer pid;
    private String dname;
    private String color;
    private String createtime;
    private String shelltime;
    private String picture;

    @Override
    public String toString() {
        return "Computer{" +
                "id=" + id +
                ", pid=" + pid +
                ", dname='" + dname + '\'' +
                ", color='" + color + '\'' +
                ", createtime=" + createtime +
                ", shelltime=" + shelltime +
                ", picture='" + picture + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getShelltime() {
        return shelltime;
    }

    public void setShelltime(String shelltime) {
        this.shelltime = shelltime;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Override
    protected Serializable pkVal() {
        return null;
    }


}
